﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace SmsUI
{
    public partial class SelectSpeedType : DevExpress.XtraEditors.XtraForm
    {
        public string SpeedType { get; set; }
        public SelectSpeedType()
        {
            InitializeComponent();
            this.comboBoxEdit1.SelectedIndex = 0;
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            this.SpeedType = this.comboBoxEdit1.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}